/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package schoolpackage;

import commonpackage.Person;

/**
 *
 * @author apple
 */
public class Student extends Person
{
     int num;
     static String className="18级软件工程一班";

    public Student() {
    }

    public Student(String name, int age,int num) {
        super(name, age);
        this.num = num;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public static String getClassName() {
        return className;
    }

    public static void setClassName(String className) {
        Student.className = className;
    }
    
    public void doHomework()
    {
        System.out.println(this.name+" is doing homework.");
    }
    
    
}
